package com.pay.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author Peng
 * @since 2018-12-05
 */
@TableName("t_zfb_member")
public class ZfbMember implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 支付宝用户
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 当前的cookie
	 */
	private String cookie;

	/**
	 * ctoken值
	 */
	private String ctoken;

	/**
	 * 对于支付宝的用户id
	 */
	private String userId;

	/**
	 * 心跳包开始时间
	 */
	private Date createtime;

	/**
	 * 是否在线状态0不在线 1在线
	 */
	private Integer status;

	/**
	 * 总收入
	 */
	private BigDecimal totalmoney;

	/**
	 * 自身的备注
	 */
	private String mark;
	
	@TableLogic
	private Integer isdel ;
	
	/**
	 * 支付宝机器人模式 0对公 1对私
	 */
	private Integer model ; 

	public Integer getModel() {
		return model;
	}

	public void setModel(Integer model) {
		this.model = model;
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCookie() {
		return cookie;
	}

	public void setCookie(String cookie) {
		this.cookie = cookie;
	}

	public String getCtoken() {
		return ctoken;
	}

	public void setCtoken(String ctoken) {
		this.ctoken = ctoken;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public BigDecimal getTotalmoney() {
		return totalmoney;
	}

	public void setTotalmoney(BigDecimal totalmoney) {
		this.totalmoney = totalmoney;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	@Override
	public String toString() {
		return "ZfbMember{" +
				"id=" + id +
				", cookie=" + cookie +
				", ctoken=" + ctoken +
				", userId=" + userId +
				", createtime=" + createtime +
				", status=" + status +
				", totalmoney=" + totalmoney +
				", mark=" + mark +
				"}";
	}
}
